package com.whq.common.mail;

import java.util.LinkedList;

/**
 * 
 * 邮件模板（发件人、发件地址。。。。。。）
 * 
 * @author wanghuaiqiang 2008-11-14
 * 
 */
public class MailModel {
	/**
	 * 邮件类型: 文本邮件
	 */
	public static final String MAIL_TYPE_TEXT = "text";

	/**
	 * 邮件类型: HTML邮件
	 */
	public static final String MAIL_TYPE_HTML = "html";

	private String smtpServer;
	private Integer smtpPort;
	private String from;
	/**
	 * 发件人姓名
	 */
	private String fromName = "";
	private String AuthUsername;
	private String AuthPassword;
	private String[] toMailList;
	private String subject;
	private String content;
	private String mailType = MAIL_TYPE_TEXT;
	private String contentType = "text/html;charset=utf-8";
	/**
	 * 附件的list,它的element都是byte[],即图片的二进制流
	 */
	private LinkedList<byte[]> attachList = new LinkedList<byte[]>(); 

	public String getSmtpServer() {
		return smtpServer;
	}

	public void setSmtpServer(String smtpServer) {
		this.smtpServer = smtpServer;
	}

	public String getFrom() {
		return from;
	}

	public void setFrom(String from) {
		this.from = from;
	}

	public String getAuthUsername() {
		return AuthUsername;
	}

	public void setAuthUsername(String authUsername) {
		AuthUsername = authUsername;
	}

	public String getAuthPassword() {
		return AuthPassword;
	}

	public void setAuthPassword(String authPassword) {
		AuthPassword = authPassword;
	}

	public String[] getToMailList() {
		return toMailList;
	}

	public void setToMailList(String[] toMailList) {
		this.toMailList = toMailList;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public LinkedList<byte[]> getAttachList() {
		return attachList;
	}

	public void setAttachList(LinkedList<byte[]> attachList) {
		this.attachList = attachList;
	}

	public Integer getSmtpPort() {
		return smtpPort;
	}

	public void setSmtpPort(Integer smtpPort) {
		this.smtpPort = smtpPort;
	}

	public String getMailType() {
		return mailType;
	}

	public void setMailType(String mailType) {
		this.mailType = mailType;
	}

	public String getContentType() {
		return contentType;
	}

	public void setContentType(String contentType) {
		this.contentType = contentType;
	}

	public String getFromName() {
		return fromName;
	}

	public void setFromName(String fromName) {
		this.fromName = fromName;
	}
}